/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Modelo;

/**
 *
 * @author Carlos
 */
import java.awt.Image;
import java.io.*;

public abstract class Objeto implements Serializable {
	private int [] precio = new int[4];
	private String nombre;
	private int nivel;
	private int duracion;
	private char simbolo;
	private char compatible;
        public static Image imagen;

        public Image getImage(){return imagen;}
	public char getSimbolo(){return simbolo;}
	public String getNombre(){return nombre;}
	public int getNivel(){return nivel;}
	public int getDuracion(){return duracion;}
	public int[] getPrecio(){
		int [] aux = new int[3];
		aux[0] = precio[0];
		aux[1] = precio[1];
		aux[2] = precio[2];
		aux[3] = precio[3];
                return aux;
	}
	public char getCompatible(){return compatible;}
        public void setImagen(Image imagen){this.imagen = imagen;}
	public void setSimbolo(char simbolo){this.simbolo = simbolo;}
	public void setNombre(String nombre){this.nombre = nombre;}
	public void setNivel(int nivel){this.nivel = nivel;}
	public void setDuracion(int duracion){this.duracion = duracion;}
	public void setPrecio(int gold, int silver, int madera, int petroleo){
		this.precio[0] = gold;
		this.precio[1] = silver;
		this.precio[2] = madera;
		this.precio[3] = petroleo;
	}
	public void setCompatible(char compatible){this.compatible = compatible;}

}


